/**
 * Created by Delicate on 2017/5/31.
 */
require(["jquery"],()=>{
    init();
    monitor();
    service();
})
const init = ()=>{

}
const monitor = ()=>{
    $(".g-fair-task-info .u-content-btn").on("click",function(){
    	var status =  $(this).attr("data-status");
    	if(status=="off"){
    		$(".g-fair-task-info .m-cell-active").removeClass("m-cell-active");
            $(this).parent().parent().parent().addClass("m-cell-active");
            $(".u-content-btn").each(function (i,item){
            	console.log(item);
            	$(item).attr("data-status","off");
            });
            $(this).attr("data-status","open");
    	}else{
    		$(".g-fair-task-info .m-cell-active").removeClass("m-cell-active");
    		$(this).attr("data-status","off");
    	}
    });
}
const service = ()=>{

}